package com.sls.game.service;

import com.sls.core.socket.Head;
import com.sls.core.socket.ServerDisponseException;

/**
 * 
 * @description 恩付--服务接口
 * @author Wangxuegang
 * @date 2013-4-28
 */
public interface EnfuService {

	/**
	 * 恩付账户余额查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryBalance(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 合作方 用户编号查询
	 * 
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryMerchantid(Head head) throws ServerDisponseException;

	/**
	 * 恩付商品插入(新增)
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String insertEnfuGoods(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 同步所有商品详细
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String saveGoodsDetailXML(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 商品货源变更
	 * 
	 * @param reqId
	 *            请求ID
	 * @param body
	 *            请求报文body
	 * @return
	 */
	public String updateGoodsInfo(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 订单查询接口
	 * 
	 * @param body
	 * @param reqId
	 * @return
	 * @throws ServerDisponseException
	 */
	public String saveQueryOrder(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 交易订单退款通知接口
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String insertRefund(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 恩付商品分页查询
	 * 
	 * @param body
	 * @param reqId
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryByPage(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 恩付商品--单条记录查询
	 * 
	 * @param body
	 * @param reqId
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryInfoByGoodsId(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 恩付商品批量同步
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public String saveEnfuGoodsSyn(String body, Head head);

	/**
	 * 订单状态异步通知
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public String updateOrderStatus(String body, Head head);

	/**
	 * 商品详细--分页查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public String queryByPageOfGoodsDetail(String body, Head head);

	/**
	 * 商品详细，记录更新
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public String updateGoodsDetail(String body, Head head);

	/**
	 * 商品大区--分页查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public String queryByPageOfArea(String body, Head head);

	/**
	 * 商品小服--分页查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public String queryByPageOfSrv(String body, Head head);

}
